package co.edu.usbcali.ai.ga.samples.hello;

import co.edu.usbcali.ai.ga.Ga;
import co.edu.usbcali.ai.ga.Breed;
import co.edu.usbcali.ai.ga.TaskListener;


public class HelloSample  {

	public static void main(String[] args){
		
		float stop=11;
		int generationSize=64;
		int winners=11;
		int mutateds=5;
		int children=generationSize-winners-mutateds;
		int cromosomSize=11;
		
		Breed race=new HelloBreed(cromosomSize);	
//		Race race=new BinaryRace(new BinaryCromosomType(cromosomSize),SimpleCromosom.class);	
		Ga ga=new Ga(race,generationSize,winners,children,mutateds);
		ga.addActionListener(new TaskListener());
		ga.setStopValue(stop);
		ga.run();
	}
	
}
